import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import Vant from 'vant';
import 'vant/lib/index.css';
import { Lazyload } from 'vant';
import 'font-awesome/css/font-awesome.css';
import '@/assets/css/main.css';

Vue.use(Lazyload);
Vue.use(Vant);
Vue.config.productionTip = false;

router.beforeEach((to, from, next) => {
    if (to.meta.title) document.title = '医检云-'+to.meta.title;//动态化每个页面的标题
    next();
});

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
